import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { APPLY_E_INVOICE } from 'src/app/api/e-invoice';

@Injectable({providedIn: 'root'})
export class EInvoiceService {
  constructor(
    private http: HttpClient
  ) { }

  _applyEInvoice(pid: string, userNo: string): Observable<any>{
    const params = new HttpParams({ fromObject: { pid, userNo } })
    return this.http.get(APPLY_E_INVOICE, { params })
  }
  
}